<extend file='../master'/>
<block name="content">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#tab1">文章列表</a></li>
        <li><a href="{{site_url('site/catLists')}}" role="tab">栏目列表</a></li>
    </ul>
    <br/>
    <div class="well"><a class="btn btn-success" href="{{site_url('site/articlePost')}}">发表文章</a></div>
    <table class="table table-hover">
        <thead>
        <tr>
            <th>编号</th>
            <th>标题</th>
            <th>点击数</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach from="$data" value="$d">
            <tr>
                <td>{{$d['id']}}</td>
                <td>{{$d['title']}}</td>
                <td>{{$d['click']}}</td>
                <td>
                    <a href="">删除</a> |
                    <a href="">编辑</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    {{$data->links()}}
</block>